<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<script type="text/javascript">
    function changeLanguage(language) {
        var url = '${"changeLanguageOfLoginSession.do?sessionLanguage=' + language + '"}';
        $.post(url, function (data) {
            window.location.replace('homeApplicant.do');
        });
    }
</script>
<div id="header-wrapper-applicant">
    <div id="header-applicant">
        <img id="logo-eslims" width="128px" height="128px" src="${pageContext.request.contextPath}/images/cgrlogo.gif"/>
        <img id="logo-applicant" src="${pageContext.request.contextPath}/images/logo.png"/>

        <div id="title-applicant">
            <s:property value="@lk.icta.common.AppConstants@APPLICATION_NAME_SI"/> </br>
            <s:property value="@lk.icta.common.AppConstants@APPLICATION_NAME_TA"/> </br>
            <s:property value="@lk.icta.common.AppConstants@APPLICATION_NAME_EN"/>
        </div>
        <div class="buttons-applicant">
            <%--<img class="getLang" src="${pageContext.request.contextPath}/images//get_ta.png"/>
          <img class="getLang" src="${pageContext.request.contextPath}/images//get_si.png"/>--%>

            <a href="http://siyabas.lk/tamil_how_to_install_in_english.html"
               target="_blank">
                <img class="getLang" src="${pageContext.request.contextPath}/images/get_ta.png"/>

            </a>
            <a href="http://siyabas.lk/sinhala_how_to_install.html"
               target="_blank">
                <img class="getLang" src="${pageContext.request.contextPath}/images/get_si.png"/></a>
            <a href="${pageContext.request.contextPath}/lib/keyboard/t1.html"
               target="_blank">
                <img class="getLang" alt="Sinhala Keyboard"
                     src="${pageContext.request.contextPath}/images/sin_keyboard.jpg"/>
            </a>
            <a href="${pageContext.request.contextPath}/lib/keyboard/OnlineUnicodeKeyboard.html"
               target="_blank">
                <img class="getLang" alt="Sinhala Keyboard"
                     src="${pageContext.request.contextPath}/images/sin_keyboard.jpg"/>
            </a>
        </div>
        <%--if applicant logged in--%>
        <s:if test="user!= null">
            <div class="buttons-applicant font11">
                <div class="lang" onclick="changeLanguage('si')">සිංහල</div>
                <div class="lang" onclick="changeLanguage('ta')">தமிழ்</div>
                <div class="lang" onclick="changeLanguage('en')">English</div>
            </div>
        </s:if>
    </div>
</div>
<%--
<div id="user-language">
    <ul>
        <li><s:a href="#"><img src="${pageContext.request.contextPath}/images/si_LK.png" alt=""></s:a></li>
        <li><s:a href="#"><img src="${pageContext.request.contextPath}/images/ta_IN.png" alt=""></s:a></li>
        <li><s:a href="#"><img src="${pageContext.request.contextPath}/images/en_US.png" alt=""></s:a></li>
    </ul>
</div>
--%>

<div id="menu-wrapper-applicant">
    <div id="menu-applicant">
        <s:if test="user != null">
            <a href="homeSLC.do">
                <s:label value="%{getText('home_applicant.label')}"/>
            </a>
            <a href="initchangePasswordApplicant.do"><s:label value="%{getText('profile_applicant.label')}"/></a>
            <a href="calenderScheduleViewByApplicant.do">
                <s:label value="%{getText('calender_applicant.label')}"/>
            </a>
            <span class="right" style="color: #fff;"><s:label
                    value="%{getText('welcome_applicant.label')}"/> <s:property value="user.username"/> | <s:property
                    value="user.role.id"/> !</span>
            <s:a href="logout.do"><s:label value="%{getText('logout_applicant.label')}"/></s:a>

            <%-- <table>
                 <tr>
                     <td>
                         <div id="user-profile-applicant">

                                 <span class="right-applicant" style="color: #fff;"><s:label
                                         value="%{getText('welcome.label')}"/> <s:property
                                         value="user.username"/> | <s:property
                                         value="user.role.id"/> !</span>


                         </div>
                     </td>
                 </tr>
             </table>--%>
        </s:if>
    </div>
</div>
